package com.example.common.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class MessEventLinstener implements ApplicationListener<MessEvent> {

    @Async
    @Override
    public void onApplicationEvent(MessEvent messEvent) {

        log.info("接收到事件------------》" + messEvent.toString());

    }
}
